Create New Record
This trigger creates a new record from the current record using a conversion map. See Converting records for information about conversion maps. To use this trigger, select a conversion map (which determines the type of the resulting record). Also, refer to Update Field Value for details about access control policies and dependent triggers.
The ID of the newly created record is available for other triggers in the update
chain through the shared value named newID_objectName. The following
Object Script example reads the ID of the newly created record and creates an activity log
record:
var newID = rbv_api.getSharedValue("newID_entity");
rbv_api.createActivityLog("entity", {!id}, "New record created: "+newID);